class MapperController  < ApplicationController

  def index
    @core_institution = Institution.first :conditions => ["lower(name) = ?", "core"]
    @fragments = Fragment.find(:all, :conditions => ["institution_id <> ?", @core_institution.id])
  end

  def choose_fragment
    fragment_id = params[:fragment][:id]
    unless fragment_id.blank?
      @fragment = Fragment.find(fragment_id)
      @concepts = Concept.paginate :conditions => { :fragment_id => @fragment.id }, :order => "name", :page => params[:page], :per_page => 500
    end
  end

end
